package io.github.service;

import com.alibaba.fastjson.JSONObject;
import com.baomidou.mybatisplus.plugins.Page;
import com.baomidou.mybatisplus.service.IService;
import io.github.entity.SysCallogsEntity;

import java.util.List;

/**
 * @author: weil
 * @date: 2019/9/18 20:29
 * @version: 1.0
 * @description:
 */
public interface SysCalllogsService extends IService<SysCallogsEntity> {

    /**
     * 查询通话列表
     *
     * @param offset 开始
     * @param limit  条数
     * @param sort   排序方式
     * @param order  是否为升序
     * @return Page<SysUserEntity>
     */
    Page<SysCallogsEntity> queryListByPage(Integer offset, Integer limit, String sort,String startTime,String endTime,String caller,
                                           Boolean order,String callee);


    Page<SysCallogsEntity> queryListByPage2(Integer offset, Integer limit,String startTime,String endTime,String caller,
                                            Boolean order,String callee,String callerBelong,String calleeBelong,String calleeTransfer);

    /**
     * 获取所有记录
     *
     * @return List<SysMenuEntity>
     */
    List<SysCallogsEntity> queryAllLogs();

    /**
     * 获取指定地区的所有数据
     *
     * @param areaid
     * @return
     */
    SysCallogsEntity queryByAreaid(Integer areaid);

    Long getNumber(String tempTime);

    List statistics(JSONObject json);

}
